<?php require_once APPPATH.'views/bootstrap/snip_userbox.php' ?>
<?php require_once APPPATH.'views/bootstrap/snip_projectibox.php' ?>
<?php $domain = $requestContext->domain; ?>
							<h2 title="<?php echo $domain->sid; ?>"><?php echo $domain->name; ?></h2>
							<div class="right-menu">
<?php if ($requestContext->domainMember != NULL) {
		if ($requestContext->domainMember->type=="owner" || $requestContext->domainMember->type=="admin") {?>
								You are the domain <?php echo $requestContext->domainMember->type; ?>
								<a href="<?php echo controller_base_path($requestContext).'/Domain/edit'; ?>">Update Info</a>
<?php	} 
} else { ?>
								<a href="<?php echo controller_base_path($requestContext).'/Domain/join?userSid='.$sessionInfo->userInfo['userSid']; ?>">Join</a>
<?php } ?>
							</div>
							<div class="profile-synopsis">
									<span class="profile-highlight">"<?php echo $domain->description; ?>"</span></dd>
									<dd><span class="profile-skills"><?php echo $domain->tagNamesCsv; ?><span/></dd>
								<dl>
							</div>
							<!-- PROJECT LIST -->
							<h4>Projects</h4>
<?php foreach ($domainProjects as $project) { ?>
							<?php display_projectibox($project, $requestContext); ?>
<?php } ?>

							<!-- MEMBERS LIST -->
							<h4>Users</h4>
<?php foreach ($domainMembers as $member) { ?>
							<?php //print_r($member); ?>
							<?php display_userbox($member->profileDto, $requestContext); ?>
<?php } ?>					